/*
 * @Author: 矫建武 1452239416@qq.com
 * @Date: 2024-09-04 17:29:05
 * @LastEditTime: 2024-11-29 08:38:15
 * @FilePath: \tool\src\router\modules\4.tool.ts
 * @Description:
 *
 * @file: https://github.com/OBKoro1/koro1FileHeader/wiki/%E5%AE%89%E8%A3%85%E5%92%8C%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B
 */

import layout from '@/layout/index.vue';
import {
  Tool,
  TwoDimensionalCodeTwo,
  FileZip,
  Time,
  Format,
  Transform,
  PageTemplate,
  TreasureChest,
} from '@icon-park/vue-next';

const route = {
  title: '小工具',
  name: 'tool',
  path: '/tool',
  icon: Tool,
  component: layout,
  children: [
    {
      path: 'qrcodes',
      name: 'qrcodes',
      title: '二维码',
      icon: TwoDimensionalCodeTwo,
      component: () => import('@/views/tool/qrcode.vue'),
    },
    {
      path: 'compressImages',
      name: 'compressImages',
      title: '压缩图片',
      icon: FileZip,
      component: () => import('@/views/tool/compressImages.vue'),
    },
    {
      path: 'JSONformat',
      name: 'JSONformat',
      title: 'JSON格式化',
      icon: Format,
      component: () => import('@/views/tool/JSONformat.vue'),
    },
    {
      path: 'timeStamp',
      name: 'timeStamp',
      title: '时间戳转换',
      icon: Time,
      component: () => import('@/views/tool/timeStamp.vue'),
    },
    {
      path: 'base64Code',
      name: 'base64Code',
      title: 'Base64编码',
      icon: Transform,
      component: () => import('@/views/tool/base64Code.vue'),
    },
    {
      path: 'previewFile',
      name: 'previewFile',
      title: '预览各种东西',
      icon: Transform,
      component: () => import('@/views/tool/previewFile.vue'),
    },
    {
      path: 'uiComponents',
      name: 'uiComponents',
      title: 'UI功能组件',
      icon: PageTemplate,
      component: () => import('@/views/tool/uiComponents.vue'),
    },
    {
      path: 'toolFunction',
      name: 'toolFunction',
      title: '工具函数',
      icon: TreasureChest,
      component: () => import('@/views/tool/toolFunction.vue'),
    },
  ],
};
export default route;
